package com.fdd.spring.aop.aspectjexercise;


import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

//切面类
@Aspect
@Component
public class SmartUsbAspect {

    @Before(value ="execution(* com.fdd.spring.aop.aspectjexercise.Phone.*(..))")
    public static void showBeginLog(JoinPoint joinPoint){
        System.out.println("===开始执行===" + joinPoint.getSignature().getName() + "方法");
    }

}
